package com.mallsystem.common.service;

import com.mallsystem.common.bean.Category;
import com.mallsystem.common.exception.AllException;

public interface CategoryService {
    //添加
    boolean insert(Category category) throws AllException;
    //删除
    boolean delete(Integer id) throws AllException;
    //修改
    boolean update(Category category) throws AllException;
    //条件查询
    Object selectByCondition(Category condition,Integer pageNum,Integer pageSize);
    //根据id查询
    Category selectById(Integer id);
    //修改上架下架状态
    boolean updateStatus(Category category) throws AllException;
}
